package com.joysuch.wwyt.workflow.repository;

import com.joysuch.wwyt.workflow.entity.WorkFlowFormTemplateType;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface WorkFlowFormTemplateTypeDao extends JpaRepository<WorkFlowFormTemplateType, Long>{

    WorkFlowFormTemplateType findFirstByNameAndParentId(String name, Long parentId);

    List<WorkFlowFormTemplateType> findAllByStateOrderByParentIdAscShowOrderAsc(Integer state);


}
